cmake_minimum_required(VERSION 3.29.0)

project(Udp_Server)

set(CMAKE_CXX_STANDARD 11)          # 使用 C++17
set(CMAKE_CXX_STANDARD_REQUIRED ON) # 必须支持该标准
set(CMAKE_CXX_EXTENSIONS OFF)

find_package(Threads REQUIRED)
add_executable(client client.cpp)
target_link_libraries(client Threads::Threads)
add_executable(server server.cpp)
target_link_libraries(server Threads::Threads)